package com.ruoyi.bookkeeping.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bookkeeping.domain.BookNotice;
import com.ruoyi.bookkeeping.domain.param.AddBookNoticeParam;
import com.ruoyi.bookkeeping.domain.param.UpdateBookNoticeParam;
import com.ruoyi.bookkeeping.domain.vo.BookBeNoticeVo;

/**
 * 好友请求Service接口
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
public interface IBookNoticeService extends IService<BookNotice>
{
    /**
     * 查询好友请求
     * 
     * @param friendsNoticeId 好友请求主键
     * @return 好友请求
     */
    public BookNotice selectBookNoticeByFriendsNoticeId(Long friendsNoticeId);


    /**
     * 查询被好友请求列表
     * @param userId
     * @return
     */
    public List<BookBeNoticeVo> selectBookNoticeList(Long userId);

    /**
     * 新增好友请求
     * @param addBookNoticeParam
     * @param userId
     * @return
     */
    public int insertBookNotice(AddBookNoticeParam addBookNoticeParam,Long userId);

    /**
     * 修改好友请求
     * @param updateBookNoticeParam
     * @param userId
     * @return
     */
    public int updateBookNotice(UpdateBookNoticeParam updateBookNoticeParam,Long userId);





}
